Protective circuit for protecting hard disk data

ABSTRACT

A protective circuit for protecting hard disk data comprises: a first HD coupling connected to a HD coupling of motherboard; a second HD coupling connected to a HD; a HD signal processor coupled to the first HD coupling, the second HD coupling, and a microprocessor respectively; a random access memory (RAM) connected to the microprocessor; a nonvolatile semiconductor memory having program codes for converting a read/write instruction of the HD coupling on the motherboard with respect to the HD from a main data space to a virtual data space thereof; and the microprocessor for running program codes.  
     In case the data stored in the virtual data space are damaged, the protective circuit of this invention can be applied to recopy the data in the main data space to the virtual data space to revive the latter.

FIELD OF THE INVENTION

[0001] This invention relates generally to protective circuits for protecting data, particularly to a protective circuit for protecting hard disk data arranged between a Hard Disk Drive (HDD) and the motherboard in the form like an Integrated Drive Electronics (IDE) interface.

BACKGROUND OF THE INVENTION

[0002] A protective circuit for protecting hard disk data is usually made in form of an interface card and plugged in a Industry Standard Architecture (ISA) slot or a Peripheral Component Interconnect (PCI) slot. The measure of the protective circuit is more or less concerned to the operating system (O/S) set in a hard disk and is mostly limited in intercepting the interruption instruction INT 13 of the widely known Basic Input/Output System (BIOS) chip(s) lying on the motherboard for operating a Hard Disk Drive (HDD). Therefore, a protective circuit based on Microsoft operating system may not be compatible with that of Apple series, namely, the protective measure is somewhat dependent on an operating system. Besides, a user has to install a related driver in addition to a conventional protective circuit, which cannot function anymore when the driver is damaged or disabled.

SUMMARY OF THE INVENTION

[0003] The primary object of this invention is to provide a protective circuit for protecting hard disk data, which is located between a motherboard and a hard disk (HD) drive and is irrespective of any operating system or driving program.

[0004] The protective circuit should comprise:

[0005] a first HD coupling connected to a HD coupling of motherboard;

[0006] a second HD coupling connected to a HD;

[0007] a HD signal processor coupled to: the first HD coupling, the second HD coupling, and a microprocessor;

[0008] a random access memory (RAM) connected to the microprocessor;

[0009] a nonvolatile semiconductor memory having program codes for switching a read/write instruction of the HD coupling on the motherboard with respect to the HD from a main data space to a virtual data space thereof; and

[0010] the microprocessor for running the program codes;

[0011] In case the data stored in the virtual data space are damaged, the protective circuit of this invention can be applied to recopy the data in the main data space to the virtual data space to revive the latter.

[0012] For more detailed information regarding this invention together with advantages or features thereof, at least an example of preferred embodiment will be elucidated below with reference to the annexed drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The related drawings in connection with the detailed description of this invention, which is to be made later, are described briefly as follows, in which:

[0014]FIG. 1 shows the architecture of this invention;

[0015]FIG. 2 is a schematic view showing that a hard disk is partitioned into a main and a virtual data space;

[0016]FIG. 3 shows a menu of running an external program code; and

[0017]FIG. 4 is a flowchart for infusing the program code of this invention into a nonvolatile semiconductor memory.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0018] Basing on the architecture of this invention shown in FIG. 1, a protective circuit for protecting hard disk (HD) data 10 comprises a first HD coupling 100, a second HD coupling 101, a HD signal processor 103, a random access memory (RAM) 105, a programmed nonvolatile semiconductor memory 102, and a microprocessor 104. The first HD coupling 100 is connected with a HD coupling 20 a on a motherboard 20 while the second HD coupling 101 is connected with a HD 30. The HD signal processor 103 is the hub connected with the first and the second HD coupling 100, 101, as well as the microprocessor 104 respectively. And moreover, the RAM 105 is coupled to the microprocessor 104.

[0019] The microprocessor 104 is to run a program code in the semiconductor memory 102 to convert a read/write command for access of a main data space in the HD 30 into a virtual data space.

[0020] An Integrated Drive Electronics (IDE) interface is generally disposed on a conventional motherboard 20 for jointing with an IDE hard disk drive or a CD ROM drive. In a preferred embodiment of the protective circuit 10 of this invention, both the first and the second HD couplings 100, 101 are IDE couplings and connected to the HD coupling 20 a on the motherboard 20 and to the HD 30 through a ribbon cable 40 a, 40 b respectively.

[0021] According to the protective circuit 10, the HD 30 must be partitioned in advance into a main and a virtual data space 30 a, 30 b as shown in FIG. 2. The main data space 30 a and the virtual data space 30 b are two HD spaces equal to L with respect to an initial address S0, S1, wherein the magnitude of space L and the data space 30 a, 30 b can be defined or partitioned by running an external program code. As shown in FIG. 3, when a user chooses item 1 to key in 1000, the HD 30 is partitioned into a main and a virtual data space 30 a, 30 b in 1000 MB equally, wherein the main data space 30 a is used to store an installed bulky software like the Microsoft Window operating System, maybe plus the Microsoft Office application software. The user may choose item 2—setup mode at the first time—for installing operating system and application software to the main data space 30 a After completion of the setup job, he may now choose item 3 to enter a virtual-data-space switching mode, and the protective circuit 10 would switch and copy all the data stored in the main data space 30 a to the virtual data space 30 b, so that all the read/write requests afterwards are allowed to access the virtual data space 30 b instead, and thereby protect the operating system and application software stored in the main data space 30 a.

[0022] Such a switch-measure has built a firewall surrounding the main data space 30 a to allow virus to invade the virtual data space 30 b only. In the case of virus invasion, a user may resume FIG. 3 and enter item 3 again, the protective circuit 10 would recopy all the data in the main data space 30 a to the virtual data space 30 b one more time and rebuild the operating system and application software in the latter. Moreover, a remaining space 30 c, if any, in the partitioned HD 30 is treated as a logic HD to the operating system.

[0023] In a flowchart for infusing the program code of this invention into a nonvolatile semiconductor memory shown in FIG. 4, the procedure in step 50 is to judge whether the protective circuit 10 is switched to a read/write mode of the virtual data space 30 b; if positive, it goes to step 51, or to step 52 otherwise. In the step 51, a read/write instruction of the HD coupling 20 a on the motherboard 20 applied to the main data space 30 a is converted into that of the virtual data space 30 b. For example, the HD coupling 20 a on the motherboard 20 effects a read/write instruction with respect to an absolute address S0+xx in the main data space 30 a. The step 51 is to convert the address S0+xx in the main data space 30 a into a corresponding address S1+xx in the virtual data space 30 b. The step 52 is to read/write the main data space 30 a directly through the HD coupling 20 a on the motherboard 20. For instance, when a read/write instruction is effected from the motherboard 20 through the HD coupling 20 a to a S0+xx address in the main data space 30 a, the step 52 is to read/write data from or to the address S0+xx in the main data space 30 a directly, namely, the step 52 is usually applied in the first time the operating system and application software are installed. After the first time a user has installed operating system and application software in the main data space 30 a, he may run an external program code to have the protective circuit 10 switched to a read/write mode of the virtual data space 30 b and copy the data in the main data space 30 a to the virtual data space 30 b.

[0024] Flash memory may be adopted as the nonvolatile semiconductor memory 102 of this invention for updating the inside program code more conveniently.

[0025] The external program code may be stored in a floppy disk to be read by a floppy disk drive (not shown) and run by a CPU (not shown) disposed on the motherboard 20, or integrated in the BIOS (not shown) of the motherboard 20 and run by a predetermined hot key when booting a computer system.

[0026] In the above described, at least one preferred embodiment has been described in detail with reference to the drawings annexed, and it is apparent that numerous variations or modifications may be made without departing from the true spirit and scope thereof, as set forth in the claims below. 

What is claimed is:
 1. A protective circuit for protecting hard disk data, comprising: a first hard disk (HD) coupling connected to a hard disk (HD) coupling of motherboard; a second HD coupling connected to a HD; a HD signal processor coupled to the first HD coupling, the second HD coupling, and a microprocessor; a random access memory (RAM) connected to the microprocessor; a nonvolatile semiconductor memory having program codes for converting a read/write instruction of the HD coupling on the motherboard with respect to the HD from a main data space to a virtual data space thereof; and the microprocessor for running the program codes; wherein if data stored in the virtual data space are damaged, the protective circuit of this invention can be applied to recopy the data in the main data space to the virtual data space to revive the latter.
 2. The protective circuit according to claim 1, wherein the first hard disk coupling is an Integrated Drive Electronics (IDE) coupling.
 3. The protective circuit according to claim 1, wherein the second hard disk coupling is also an IDE coupling.
 4. The protective circuit according to claim 1, wherein the hard disk (HD) connected to the second HD coupling can run an external program code to partition the hard disk into the main and the virtual data space.
 5. The protective circuit according to claim 1, wherein the main data space in the hard disk is arranged for storing an operating system. 